using System;
using System.Collections.Generic;
using System.Text;

namespace nDeveloper.UI.Windows.IDE
{
    public class TableSchema : IComparable<TableSchema>
    {
        private string name;
        private string description;

        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public string Description
        {
            get
            {
                return description;
            }
            set
            {
                description = value;
            }
        }

        public TableSchema()
        {
        }

        public TableSchema(string name)
        {
            this.name = name;
        }

        #region IComparable<TableSchema> Members

        public int CompareTo(TableSchema other)
        {
            return String.Compare(this.name, other.name, StringComparison.CurrentCultureIgnoreCase);
        }

        #endregion
    }
}
